<!-- data-toggle="validator"表示后台当中会集成一个js验证器，添加完这句，会自动去做个验证 -->
<form class="form-horizontal" role="form" data-toggle="validator" method="POST">
    <div class="form-group">
        <!-- 用到语言包，位置为fast/application/admin/lang/zh-cn/business/source.php -->
        <label for="name" class="control-label col-xs-12 col-sm-2">{:__('name')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="name" data-rule="required" class="form-control" name="row[name]" type="text"
                value="{$row.name}" />
        </div>
    </div>

    <!-- 按钮 -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>

</form>